package com.vehicle.mapper;

import com.vehicle.pojo.Driver;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public interface DriverMapper {
    public List<Driver> selectDriversByPage(Driver driver);

    public  Driver selectDriverById(Integer driverid);

    List<Driver> selectDrivers();

    //增加驾驶员
    public void insertDriver(Driver driver);

    //查询未分配车辆的驾驶员
    public List<Driver>  findDriverWithNoCar();

    //修改驾驶员
    public void  updateDriver(Driver driver);

    //改变状态删除
    public void updateStatus(Integer driverid);
}
